import { alert } from 'vue-strap'
import store from '../../vuex/store'
import loginCheck from '../../util/login-check'

export default {
  name: 'App',
  components: {
    'vue-alert-msg': alert
  },
  computed: {
    menu() {
      return this.menuList[this.menuType]
    }
  },
  store,
  created() {
    loginCheck(this)
  },
  vuex: {
    getters: {
      msg: state => state.msg,
      menuList: state => state.menuList,
      menuType: state => state.menuType
    }
  }
}
